package com.ruoyi.project.wx.dao;


import com.ruoyi.project.wx.domain.GoodsGoodsDO;
import com.ruoyi.project.wx.dto.FindGoodsDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 商品
 * @author sys
 * @email 1992lcg@163.com
 * @date 2019-03-19 16:39:22
 */
@Mapper
public interface GoodsGoodsDao {

	GoodsGoodsDO get(String id);
	
	List<GoodsGoodsDO> list(Map<String, Object> map);

	List<Map<String,Object>> queryAllForIdAndName(Map<String, Object> map);

	int count(Map<String, Object> map);
	
	int save(GoodsGoodsDO goodsGoods);
	
	int update(GoodsGoodsDO goodsGoods);
	
	int remove(String id);
	
	int batchRemove(String[] ids);

	List<FindGoodsDto> findByName(Object object);

	List<Map<String, Object>> recommend(Map<String, Object> params);

	List<Map<String, Object>> goodsListByClass(Map<String, Object> params);

	GoodsGoodsDO getDetail(Map<String, Object> params);

	List<Map<String, Object>> getGoodsOrder(Map<String, Object> params);


	List<Map<String, Object>> getByShopId(String shopId);
}
